//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Vml
{
    class ImageAttributes
    {
        #region IOfficeXmlSerializable Members

        public void ReadXml(ReadContext context)
        {
            Source = context.GetOptionalString("src");
            CropLeft = context.GetOptionalString("cropleft");
            CropTop = context.GetOptionalString("croptop");
            CropRight = context.GetOptionalString("cropright");
            CropBottom = context.GetOptionalString("cropbottom");
            Gain = context.GetOptionalString("gain");
            BlackLevel = context.GetOptionalString("blacklevel");
            Gamma = context.GetOptionalString("gamma");
            GrayScale = context.GetOptionalString("grayscale");
            BiLevel = context.GetOptionalString("bilevel");
        }

        public void WriteXml(WriteContext context)
        {
            context.SetOptionalString("src", Source);
            context.SetOptionalString("cropleft", CropLeft);
            context.SetOptionalString("croptop", CropTop);
            context.SetOptionalString("cropright", CropRight);
            context.SetOptionalString("cropbottom", CropBottom);
            context.SetOptionalString("gain", Gain);
            context.SetOptionalString("blacklevel", BlackLevel);
            context.SetOptionalString("gamma", Gamma);
            context.SetOptionalString("grayscale", GrayScale);
            context.SetOptionalString("bilevel", BiLevel);
        }

        #endregion

        private string _src;

        public string Source //\\ tocheck
        {
            get { return _src; }
            set { _src = value; }
        }
        private string _cropleft;

        public string CropLeft
        {
            get { return _cropleft; }
            set { _cropleft = value; }
        }
        private string _croptop;

        public string CropTop
        {
            get { return _croptop; }
            set { _croptop = value; }
        }
        private string _cropright;

        public string CropRight
        {
            get { return _cropright; }
            set { _cropright = value; }
        }
        private string _cropbottom;

        public string CropBottom
        {
            get { return _cropbottom; }
            set { _cropbottom = value; }
        }
        private string _gain;

        public string Gain
        {
            get { return _gain; }
            set { _gain = value; }
        }
        private string _blacklevel;

        public string BlackLevel
        {
            get { return _blacklevel; }
            set { _blacklevel = value; }
        }
        private string _gamma;

        public string Gamma
        {
            get { return _gamma; }
            set { _gamma = value; }
        }
        private string _grayscale;

        public string GrayScale
        {
            get { return _grayscale; }
            set { _grayscale = value; }
        }
        private string _bilevel;

        public string BiLevel
        {
            get { return _bilevel; }
            set { _bilevel = value; }
        }
	
	
	
	
	
	
	
	
	
	
    }
}
